package com.dyna.demo.feign.service;

import com.dyna.foundation.domain.entity.SysUser;
import com.dyna.foundation.domain.resp.SysUserResp;

public interface OpenFeignService {

    /**
     * 根据用户id查询用户信息
     * @param userId 用户id
     * @return UserInfoBo
     */
    SysUserResp getUserInfoById(Long userId);

    /**
     * 根据用户名查询用户信息
     * @param username username
     * @return User
     */
    SysUser getUserInfoByUsername(String username);

    /**
     * 测试远程调用
     * @param userId 用户id
     * @return Boolean
     */
    Boolean testException(Long userId);

}
